package com.java.grammer.innerclass.exer1;

/**
 * @author luzhikun
 * @date 2020/12/17-18:33
 */
public class Test2 {
    public static void main(String[] args) {
        Test3 test3 = new Test3();
        test3.Show();
        int a = test3.Show().compareTo(5);
        System.out.println(a);

    }
}

class Test3 {
    public Comparable Show() {
        class Test4 implements Comparable {

            @Override
            public int compareTo(Object o) {
                return 6;
            }
        }
        return new Test4();
    }
}